package com.hlhj.carview.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import com.hlhj.carview.Iview.WalletView
import com.hlhj.carview.bean.MyBaseBean
import com.hlhj.carview.module.WalletModule

/**
 * Created by Never Fear   on 2018\12\20 0020.
Never More....
 */
class WalletPresenter :BasePresenter<WalletModule,WalletView>(), WalletView {
    override fun setRule(myBaseBean: MyBaseBean) {
        view?.setRule(myBaseBean)
    }

    fun getRule(c:Context){
        module?.getRule(c)
    }

    override fun createModule() {
        module=WalletModule()
        module.lis=this
    }
}